import SvgIconComponent from './SvgIconComponent.vue'
// 组装成一个对象
const allGlobalComponents = {SvgIconComponent}
console.log(allGlobalComponents)
export default {
    install(app) {
        // 循环注册所有的全局组件
        Object.keys(allGlobalComponents).forEach((componentName) => {
            console.log(componentName)
            app.component(componentName, allGlobalComponents[componentName])
        })
    },
}
